import React, { Component } from 'react-native';
import Topbar from '../components/bwmain/topbar';
import DayRecordList from '../components/bwmain/dayRecordList'

const {
  StyleSheet,
  View,
  Text,
  ViewPagerAndroid,
  TouchableOpacity
} = React;



class bwmain extends Component {
	constructor(props) {
	    super(props);
	    //LayoutAnimation.configureNext(LayoutAnimation.Presets.spring);
	    this.state={
	    	currentTab:0
	    }
	 }
	render() {
	    return (
	      <View style={styles.contain}>
	      	<View style={styles.topbar}><Topbar reduxBwmain={this.props.reduxBwmain} navigator={this.props.navigator}></Topbar></View>
	     	<View style={styles.dayRecordList}><DayRecordList></DayRecordList></View>

	      </View>
	    );
	}
}

var styles = StyleSheet.create({
	contain:{
		flex:1
	},
	topbar:{
		flex:1,
		//backgroundColor:'red'
	},
	dayRecordList:{
		flex:10
	}
});


export default bwmain;
